# Contributor: Peter Shkenev <santurysim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=gajim
pkgver=1.4.3
pkgrel=1
_pkgver_suffix=""
pkgdesc="A full featured and easy to use XMPP client"
url="https://gajim.org/"
arch="noarch"
license="GPL-3.0-only"
depends="
	dbus
	dbus-x11
	gtk+3.0
	libsoup
	py3-cairo
	py3-css-parser
	py3-gobject3
	py3-keyring
	py3-nbxmpp
	py3-openssl
	py3-packaging
	py3-pillow
	py3-precis-i18n
	"
makedepends="py3-setuptools python3-dev gettext-dev"
checkdepends="xvfb-run ttf-dejavu"
source="
	https://gajim.org/downloads/${pkgver:0:3}/gajim-$pkgver$_pkgver_suffix.tar.gz
	"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	python3 setup.py build
}

check() {
	xvfb-run python3 -m unittest discover -s test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}


sha512sums="
9d0f4f9446ad276ebadc6eb38940c14504984ba27b6d14135bfff29c4f5b62a363c473c36615a41cca30cc2c3a4080320b0c9442f21360403297eb28a364b31e  gajim-1.4.3.tar.gz
"
